﻿#pragma once

/*
* 这里主要是regex-learning相关的头文件都放到这里
*/

#include <iostream>
#include <string>
#include <regex>

#include <cctype>

using namespace std;

/* ----- SpiltByRegex.h */
int SpiltByRegex();

int SpiltByRegex(string& in, regex pattern);

/* ----- ReplaceByRegex.h */

/// <summary>
/// 利用正则表达式删除字符串的某些字符
/// </summary>
/// <param name="in"></param>
/// <param name="pattern"></param>
/// <returns></returns>
int ReplaceByRegex(string& in, regex pattern);

int ReplaceByRegex(string& in, regex pattern, const string replace);

/* ----- SearchByRegex.h ----- */
int SearchByRegex(string& in, regex pattern);

/* ----- TextTransformByRegex.h ----- */
int StrToLower(string& in);

int StrToUpper(string& in);
